package kusterordonio.interfaz;

import java.awt.Color;
import java.awt.event.KeyEvent;
import java.util.*;
import java.text.*;
import kusterordonio.dominio.*;

public class VentanaSaludBucal extends javax.swing.JFrame {

    private SistemaCarne modelo;
    private Ninio niño;
    private boolean caso;
    
    /** Creates new form VentanaSaludBucal */
    public VentanaSaludBucal() {
        initComponents();
    }
    
    public VentanaSaludBucal(SistemaCarne unSistema, Ninio unNiño, boolean unCaso) {
        modelo = unSistema;
        niño = unNiño;
        caso = unCaso;
        initComponents();
        this.jLabelCheck1.setVisible(false);
        this.jLabelCheck2.setVisible(false);
        this.jLabelCheck3.setVisible(false);
        controlGenero();
        cargarDatos();
        controlCaso();
        jBtnSalir.setMnemonic(KeyEvent.VK_S);
        jBtnConfirmar.setMnemonic(KeyEvent.VK_C);
    }
    
    //setea los elementos de la ventana según el rol del actor
    public void controlCaso(){
        jTxtEnf12.setEditable(caso);
        jTxtEnf9.setEditable(caso);
        jTxtEnf6.setEditable(caso);
        jTxtPer12.setEditable(caso);
        jTxtPer9.setEditable(caso);
        jTxtPer6.setEditable(caso);
        jTxtGingi12.setEditable(caso);
        jTxtGingi9.setEditable(caso);
        jTxtGingi6.setEditable(caso);
        jBtnConfirmar.setVisible(caso);
    }

    public void cargarDatos(){
        this.jLabelNombre.setText(niño.toString());
        if(!niño.getCarne().getSaludBucal()[0].equals("")){
            this.jLabelEnf6.setText(niño.getCarne().getSaludBucal()[0]);
            this.jTxtEnf6.setVisible(false);
            this.jLabelCheck1.setVisible(true);
        } 
        if(!niño.getCarne().getSaludBucal()[1].equals("")){
            this.jLabelPer6.setText(niño.getCarne().getSaludBucal()[1]);
            this.jTxtPer6.setVisible(false);
            this.jLabelCheck1.setVisible(true);
        }
        if(!niño.getCarne().getSaludBucal()[2].equals("")){
            this.jLabelGingi6.setText(niño.getCarne().getSaludBucal()[2]);
            this.jTxtGingi6.setVisible(false);
            this.jLabelCheck1.setVisible(true);
        }
        if(!niño.getCarne().getSaludBucal()[3].equals("")){
            this.jLabelEnf9.setText(niño.getCarne().getSaludBucal()[3]);
            this.jTxtEnf9.setVisible(false);
            this.jLabelCheck2.setVisible(true);
        } 
        if(!niño.getCarne().getSaludBucal()[4].equals("")){
            this.jLabelPer9.setText(niño.getCarne().getSaludBucal()[4]);
            this.jTxtPer9.setVisible(false);
            this.jLabelCheck2.setVisible(true);
        }
        if(!niño.getCarne().getSaludBucal()[5].equals("")){
            this.jLabelGingi9.setText(niño.getCarne().getSaludBucal()[5]);
            this.jTxtGingi9.setVisible(false);
            this.jLabelCheck2.setVisible(true);
        }
        if(!niño.getCarne().getSaludBucal()[6].equals("")){
            this.jLabelEnf12.setText(niño.getCarne().getSaludBucal()[6]);
            this.jTxtEnf12.setVisible(false);
            this.jLabelCheck3.setVisible(true);
        } 
        if(!niño.getCarne().getSaludBucal()[7].equals("")){
            this.jLabelPer12.setText(niño.getCarne().getSaludBucal()[7]);
            this.jTxtPer12.setVisible(false);
            this.jLabelCheck3.setVisible(true);
        }
        if(!niño.getCarne().getSaludBucal()[8].equals("")){
            this.jLabelGingi12.setText(niño.getCarne().getSaludBucal()[8]);
            this.jTxtGingi12.setVisible(false);
            this.jLabelCheck3.setVisible(true);
        }
    }
    
    public void controlGenero(){
        if (!niño.isSexo()){
            jLabelTitulo.setForeground(new java.awt.Color(255, 153, 0));
            jLabelTitular.setForeground(new java.awt.Color(255, 153, 0));
            jTextEdad.setBackground(new java.awt.Color(255, 153, 0));
            jTextPerdidas.setBackground(new java.awt.Color(255, 153, 0));
            jTextCaries.setBackground(new java.awt.Color(255, 153, 0));
            jTextGingi.setBackground(new java.awt.Color(255, 153, 0));
            jText6.setBackground(new java.awt.Color(255, 204, 153));
            jText9.setBackground(new java.awt.Color(255, 204, 153));
            jText12.setBackground(new java.awt.Color(255, 204, 153));
            jTxtEnf6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtEnf9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtEnf12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtPer6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtPer9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtPer12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtGingi6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtGingi9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
            jTxtGingi12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 204, 153), null, new java.awt.Color(204, 204, 0)));
        }
    }
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabelTitulo = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jTextEdad = new javax.swing.JTextField();
        jTextCaries = new javax.swing.JTextField();
        jTextPerdidas = new javax.swing.JTextField();
        jTextGingi = new javax.swing.JTextField();
        jLabelCheck1 = new javax.swing.JLabel();
        jLabelCheck2 = new javax.swing.JLabel();
        jLabelCheck3 = new javax.swing.JLabel();
        jText6 = new javax.swing.JTextField();
        jText9 = new javax.swing.JTextField();
        jText12 = new javax.swing.JTextField();
        jTxtEnf6 = new javax.swing.JTextField();
        jTxtPer6 = new javax.swing.JTextField();
        jTxtGingi6 = new javax.swing.JTextField();
        jLabelEnf6 = new javax.swing.JLabel();
        jLabelPer6 = new javax.swing.JLabel();
        jLabelGingi6 = new javax.swing.JLabel();
        jTxtEnf9 = new javax.swing.JTextField();
        jTxtPer9 = new javax.swing.JTextField();
        jTxtGingi9 = new javax.swing.JTextField();
        jLabelEnf9 = new javax.swing.JLabel();
        jLabelPer9 = new javax.swing.JLabel();
        jLabelGingi9 = new javax.swing.JLabel();
        jTxtEnf12 = new javax.swing.JTextField();
        jTxtPer12 = new javax.swing.JTextField();
        jTxtGingi12 = new javax.swing.JTextField();
        jLabelEnf12 = new javax.swing.JLabel();
        jLabelPer12 = new javax.swing.JLabel();
        jLabelGingi12 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jBtnConfirmar = new javax.swing.JButton();
        jBtnSalir = new javax.swing.JButton();
        jLabelTitular = new javax.swing.JLabel();
        jLabelNombre = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Salud bucal");
        setBounds(new java.awt.Rectangle(200, 100, 0, 0));
        setResizable(false);

        jPanel1.setLayout(null);

        jLabelTitulo.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabelTitulo.setForeground(new java.awt.Color(51, 153, 0));
        jLabelTitulo.setText("Salud bucal");
        jPanel1.add(jLabelTitulo);
        jLabelTitulo.setBounds(20, 20, 200, 20);
        jPanel1.add(jSeparator1);
        jSeparator1.setBounds(0, 50, 750, 10);

        jTextArea1.setColumns(20);
        jTextArea1.setEditable(false);
        jTextArea1.setFont(new java.awt.Font("Tahoma", 0, 11));
        jTextArea1.setRows(5);
        jTextArea1.setText("- Se recomienda control con odontólogo cada seis meses desde el nacimiento hasta que cumpla los 3 años y a partir de los 3 años control\n  odontológico anual.\n- No limpiar el chupete con la boca del adulto, ni agregar miel u otros dulces.\n- Después de la erupción dentaria y hasta los 2 años de edad se recomienda la higiene con cepillo sin pasta dental.\n- A partir de los 2 años cepillar con pasta dental después de cada comida.\n- Evite que consuma en exceso caramelos y bebidas azucaradas.\n- Es importante mantener sanos los dientes temporarios ya que por caries o pérdida anticipada de los mismos, se pueden afectar los dientes\n  definitivos.");
        jTextArea1.setPreferredSize(new java.awt.Dimension(585, 115));
        jScrollPane1.setViewportView(jTextArea1);

        jPanel1.add(jScrollPane1);
        jScrollPane1.setBounds(30, 70, 690, 150);

        jTextEdad.setBackground(new java.awt.Color(51, 153, 0));
        jTextEdad.setEditable(false);
        jTextEdad.setFont(new java.awt.Font("Tahoma", 1, 11));
        jTextEdad.setForeground(new java.awt.Color(255, 255, 255));
        jTextEdad.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextEdad.setText("Edad (años)");
        jPanel1.add(jTextEdad);
        jTextEdad.setBounds(70, 250, 100, 20);

        jTextCaries.setBackground(new java.awt.Color(51, 153, 0));
        jTextCaries.setEditable(false);
        jTextCaries.setFont(new java.awt.Font("Tahoma", 1, 11));
        jTextCaries.setForeground(new java.awt.Color(255, 255, 255));
        jTextCaries.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextCaries.setText("Enfermedad caries");
        jPanel1.add(jTextCaries);
        jTextCaries.setBounds(170, 250, 170, 20);

        jTextPerdidas.setBackground(new java.awt.Color(51, 153, 0));
        jTextPerdidas.setEditable(false);
        jTextPerdidas.setFont(new java.awt.Font("Tahoma", 1, 11));
        jTextPerdidas.setForeground(new java.awt.Color(255, 255, 255));
        jTextPerdidas.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextPerdidas.setText("Pérdidas dentarias");
        jPanel1.add(jTextPerdidas);
        jTextPerdidas.setBounds(340, 250, 170, 20);

        jTextGingi.setBackground(new java.awt.Color(51, 153, 0));
        jTextGingi.setEditable(false);
        jTextGingi.setFont(new java.awt.Font("Tahoma", 1, 11));
        jTextGingi.setForeground(new java.awt.Color(255, 255, 255));
        jTextGingi.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextGingi.setText("Gingivitis  u otras");
        jPanel1.add(jTextGingi);
        jTextGingi.setBounds(510, 250, 170, 20);

        jLabelCheck1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelCheck1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kusterordonio/recursos/tickN.gif"))); // NOI18N
        jPanel1.add(jLabelCheck1);
        jLabelCheck1.setBounds(140, 270, 20, 20);

        jLabelCheck2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelCheck2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kusterordonio/recursos/tickN.gif"))); // NOI18N
        jPanel1.add(jLabelCheck2);
        jLabelCheck2.setBounds(140, 290, 20, 20);

        jLabelCheck3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelCheck3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/kusterordonio/recursos/tickN.gif"))); // NOI18N
        jPanel1.add(jLabelCheck3);
        jLabelCheck3.setBounds(140, 310, 20, 20);

        jText6.setBackground(new java.awt.Color(204, 204, 0));
        jText6.setEditable(false);
        jText6.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jText6.setText("6");
        jPanel1.add(jText6);
        jText6.setBounds(70, 270, 100, 20);

        jText9.setBackground(new java.awt.Color(204, 204, 0));
        jText9.setEditable(false);
        jText9.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jText9.setText("9");
        jPanel1.add(jText9);
        jText9.setBounds(70, 290, 100, 20);

        jText12.setBackground(new java.awt.Color(204, 204, 0));
        jText12.setEditable(false);
        jText12.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jText12.setText("12");
        jPanel1.add(jText12);
        jText12.setBounds(70, 310, 100, 20);

        jTxtEnf6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtEnf6);
        jTxtEnf6.setBounds(170, 270, 170, 20);

        jTxtPer6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtPer6);
        jTxtPer6.setBounds(340, 270, 170, 20);

        jTxtGingi6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtGingi6);
        jTxtGingi6.setBounds(510, 270, 170, 20);

        jLabelEnf6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEnf6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelEnf6);
        jLabelEnf6.setBounds(170, 270, 170, 20);

        jLabelPer6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelPer6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelPer6);
        jLabelPer6.setBounds(340, 270, 170, 20);

        jLabelGingi6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelGingi6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelGingi6);
        jLabelGingi6.setBounds(510, 270, 170, 20);

        jTxtEnf9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtEnf9);
        jTxtEnf9.setBounds(170, 290, 170, 20);

        jTxtPer9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtPer9);
        jTxtPer9.setBounds(340, 290, 170, 20);

        jTxtGingi9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtGingi9);
        jTxtGingi9.setBounds(510, 290, 170, 20);

        jLabelEnf9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEnf9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelEnf9);
        jLabelEnf9.setBounds(170, 290, 170, 20);

        jLabelPer9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelPer9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelPer9);
        jLabelPer9.setBounds(340, 290, 170, 20);

        jLabelGingi9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelGingi9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelGingi9);
        jLabelGingi9.setBounds(510, 290, 170, 20);

        jTxtEnf12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtEnf12);
        jTxtEnf12.setBounds(170, 310, 170, 20);

        jTxtPer12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtPer12);
        jTxtPer12.setBounds(340, 310, 170, 20);

        jTxtGingi12.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED, null, new java.awt.Color(255, 255, 0), null, new java.awt.Color(204, 204, 0)));
        jPanel1.add(jTxtGingi12);
        jTxtGingi12.setBounds(510, 310, 170, 20);

        jLabelEnf12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelEnf12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelEnf12);
        jLabelEnf12.setBounds(170, 310, 170, 20);

        jLabelPer12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelPer12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelPer12);
        jLabelPer12.setBounds(340, 310, 170, 20);

        jLabelGingi12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelGingi12.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.add(jLabelGingi12);
        jLabelGingi12.setBounds(510, 310, 170, 20);

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 9));
        jLabel2.setText("Programa de Salud Bucal - MSP.");
        jPanel1.add(jLabel2);
        jLabel2.setBounds(70, 340, 210, 10);

        jBtnConfirmar.setText("Confirmar Cambios");
        jBtnConfirmar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnConfirmarActionPerformed(evt);
            }
        });
        jPanel1.add(jBtnConfirmar);
        jBtnConfirmar.setBounds(180, 380, 130, 22);

        jBtnSalir.setText("Salir");
        jBtnSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnSalirActionPerformed(evt);
            }
        });
        jPanel1.add(jBtnSalir);
        jBtnSalir.setBounds(440, 380, 130, 23);

        jLabelTitular.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelTitular.setForeground(new java.awt.Color(51, 153, 0));
        jLabelTitular.setText("Titular:");
        jPanel1.add(jLabelTitular);
        jLabelTitular.setBounds(440, 25, 50, 20);

        jLabelNombre.setFont(new java.awt.Font("Tahoma", 1, 14));
        jPanel1.add(jLabelNombre);
        jLabelNombre.setBounds(500, 25, 220, 20);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 749, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
private void jBtnSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSalirActionPerformed
    this.dispose();
}//GEN-LAST:event_jBtnSalirActionPerformed

private void jBtnConfirmarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnConfirmarActionPerformed
    if(!this.jTxtEnf6.getText().equals("")) niño.getCarne().getSaludBucal()[0]= this.jTxtEnf6.getText();
    if(!this.jTxtPer6.getText().equals("")) niño.getCarne().getSaludBucal()[1]= this.jTxtPer6.getText();
    if(!this.jTxtGingi6.getText().equals("")) niño.getCarne().getSaludBucal()[2]= this.jTxtGingi6.getText();
    if(!this.jTxtEnf9.getText().equals("")) niño.getCarne().getSaludBucal()[3]= this.jTxtEnf9.getText();
    if(!this.jTxtPer9.getText().equals("")) niño.getCarne().getSaludBucal()[4]= this.jTxtPer9.getText();
    if(!this.jTxtGingi9.getText().equals("")) niño.getCarne().getSaludBucal()[5]= this.jTxtGingi9.getText();
    if(!this.jTxtEnf12.getText().equals("")) niño.getCarne().getSaludBucal()[6]= this.jTxtEnf12.getText();
    if(!this.jTxtPer12.getText().equals("")) niño.getCarne().getSaludBucal()[7]= this.jTxtPer12.getText();
    if(!this.jTxtGingi12.getText().equals("")) niño.getCarne().getSaludBucal()[8]= this.jTxtGingi12.getText();
}//GEN-LAST:event_jBtnConfirmarActionPerformed
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBtnConfirmar;
    private javax.swing.JButton jBtnSalir;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabelCheck1;
    private javax.swing.JLabel jLabelCheck2;
    private javax.swing.JLabel jLabelCheck3;
    private javax.swing.JLabel jLabelEnf12;
    private javax.swing.JLabel jLabelEnf6;
    private javax.swing.JLabel jLabelEnf9;
    private javax.swing.JLabel jLabelGingi12;
    private javax.swing.JLabel jLabelGingi6;
    private javax.swing.JLabel jLabelGingi9;
    private javax.swing.JLabel jLabelNombre;
    private javax.swing.JLabel jLabelPer12;
    private javax.swing.JLabel jLabelPer6;
    private javax.swing.JLabel jLabelPer9;
    private javax.swing.JLabel jLabelTitular;
    private javax.swing.JLabel jLabelTitulo;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField jText12;
    private javax.swing.JTextField jText6;
    private javax.swing.JTextField jText9;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextCaries;
    private javax.swing.JTextField jTextEdad;
    private javax.swing.JTextField jTextGingi;
    private javax.swing.JTextField jTextPerdidas;
    private javax.swing.JTextField jTxtEnf12;
    private javax.swing.JTextField jTxtEnf6;
    private javax.swing.JTextField jTxtEnf9;
    private javax.swing.JTextField jTxtGingi12;
    private javax.swing.JTextField jTxtGingi6;
    private javax.swing.JTextField jTxtGingi9;
    private javax.swing.JTextField jTxtPer12;
    private javax.swing.JTextField jTxtPer6;
    private javax.swing.JTextField jTxtPer9;
    // End of variables declaration//GEN-END:variables
}
